const initialState = {
  ticketData: [],
};

export default (state = initialState, { type, payload }: any) => {
  const newState = JSON.parse(JSON.stringify(state));
  switch (type) {
    case "GET-TICKET":
      newState.ticketData = payload;
      return newState;

    default:
      return newState;
  }
};
